home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19970626-19970929 / 000118_news@newsmaster….columbia.edu _Wed Jul 30 10:58:17 1997.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA18576
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 30 Jul 1997 10:58:17 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA09107
  7.     for kermit.misc@watsun; Wed, 30 Jul 1997 10:58:16 -0400 (EDT)
  8. Newsgroups: comp.protocols.kermit.misc
  9. Path: news.columbia.edu!sol.ctr.columbia.edu!news.msfc.nasa.gov!news.mdor.state.mn.us!chippy.visi.com!news-out.visi.com!ix.netcom.com!gerlach
  10. From: gerlach@netcom.com (Matthew H. Gerlach)
  11. Subject: using ckermit as ppp dialer
  12. Message-ID: <gerlachEE4zFA.773@netcom.com>
  13. Organization: Netcom On-Line Services
  14. Date: Wed, 30 Jul 1997 14:40:22 GMT
  15. Lines: 60
  16. Sender: gerlach@netcom23.netcom.com
  17. Xref: news.columbia.edu comp.protocols.kermit.misc:7407
  18.  
  19.  
  20. Hello fellow kermit users,
  21.  
  22. Yesterday, I posted an explanation of how one could use ckermit as a ppp
  23. dialer for a UNIX machine.  I have been asked to post the script; so 
  24. I have included it below.  In particular I was bringing up a ppp link
  25. between two SunOS boxes.  The script below would be executed on my 
  26. machine at work and would call back my machine at home and then bring up
  27. the ppp connection.  The whole thing relies on the use of the "redirect"
  28. command that allows any program that accesses STDIN/STDOUT to be used
  29. with a serial connection.  In this case the "program" being redirected,
  30. myppp, is a one line shell script that fires up pppd with the proper command
  31. line arguments.
  32.  
  33. Happy telehacking,
  34. Matthew
  35.  
  36.  
  37. ;  Start of script to dial, login and bring up ppp
  38. log session
  39. set line /dev/cua1
  40. set speed 38400
  41. set flow RTS/CTS
  42. set modem hayes
  43. set dial speed-matching off
  44. dial 4770239
  45. if success echo successful dial
  46. else exit
  47.  
  48. ; now that we have made the modem connection, send a CR to
  49. ; force the login prompt.
  50. output \13
  51. input 5 login:
  52. if failure echo failed to get login prompt, exit
  53.  
  54. output matt\13
  55. input 5 Password:
  56. if failure echo faied to get password prompt, exit
  57.  
  58. ;
  59. ;  output the password that was put on the command line
  60. ;
  61. output \&@[3]\13
  62. ; look for my prompt
  63. input 5 duvel
  64. if failure echo failed to find duvel
  65.  
  66. ; send command starting ppp on far end
  67. output myppp\13
  68. sleep 2
  69. echo fired up ppp on remote machine
  70. ;
  71. ;  now fire up ppp on my end
  72. ;
  73. redirect myppp
  74. ;
  75. ; if the connection goes down, just exit.
  76. ;
  77. quit
  78.